<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" th:src="@{/js/require.js}"></script>
    <script type="text/javascript" th:src="@{/js/requireConfig.js}"></script>
    <link rel="stylesheet" th:href="@{/css/sa.css}">
</head>
<body>
<div style="margin-top: -1em;"><br></div>
<div id="toolbarDemo" style="display: none">
    <div class="layui-btn-container">

    </div>
</div>
<div id="uploadLoadingDiv" style="position: fixed;top:0">
    <div class="layui-progress" lay-filter="demo">
        <div class="layui-progress-bar layui-bg-orange" lay-percent="0%"></div>
    </div>
</div>
<div class="vue-box" style="display: block;">
    <div class="c-panel">
        <div class="c-title">检索参数</div>
        <form class="layui-form el-form">
            <div class="c-item">
                <label class="c-label">用户名称：</label>
                <input class="layui-input layui-input-inline" name="name">
            </div>
            <div class="c-item">
                <label class="c-label">下单时间：</label>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input class="layui-input" name="create_TIME" id="createTime">
                    </div>
                    -
                    <div class="layui-input-inline">
                        <input class="layui-input" name="create_TIME_END" id="endTime">
                    </div>
                </div>
            </div>
            <div class="c-item">
                <div class="layui-inline">
                    <div class="layui-input-inline"><label class="c-label">订单状态：</label></div>
                    <div class="layui-input-inline"><select name="status">
                        <option value=""></option>
                        <option value="NO">未付款</option>
                        <option value="YES">已付款</option>
                        <option value="END">已收货</option>
                        <option value="MAIL">邮寄中</option>
                        <option value="CALL">取消</option>
                        <!--<option value="QUIT">退货</option>-->
                    </select></div>
                </div>
            </div>
            <div class="c-item" style="min-width: 0px;">
                <button @click="seachs()" type="button" class="layui-btn layui-input-inline layui-btn-sm">
                    <i class="layui-icon layui-icon-search"></i>
                    查询
                </button>
                <button @click="referXadmin()" type="button"
                        class="layui-btn layui-input-inline layui-btn-normal layui-btn-sm">
                    <i class="layui-icon layui-icon-refresh"></i>
                    刷新
                </button>
            </div>
        </form>
    </div>
    <div class="c-panel">
        <div class="c-title">列表</div>
        <div class="sa-table">

        </div>
    </div>
    <div id="admins" style="display: none;padding-top: 20px">
        <form class="layui-form" action="">
            <input type="hidden" name="uuid" id="orderId">
            <div class="layui-form-item">
                <label class="layui-form-label">快递单号</label>
                <div class="layui-input-block">
                    <input type="text" name="nio" required lay-verify="required" placeholder="快递单号" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮寄方式</label>
                <div class="layui-input-block">
                    <select name="diction" lay-verify="required">
                        <option v-bind:value="items.uuid" v-for="items in mail">{{items.val}}</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
    <div id="adminsxx" style="display: none;padding-top: 20px">
        <form class="layui-form" action="">
            <input type="hidden" name="uuid" id="orderIdxx">
            <div class="layui-form-item">
                <label class="layui-form-label">减免金额（正数为减免，负数为增加）</label>
                <div class="layui-input-block">
                    <input type="number" name="anull" required lay-verify="required" placeholder="减免金额" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemoxx">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>

</div>
<script type="text/html" id="shop">
    {{d.shopSpec.shop.name}}
</script>
<script type="text/html" id="spec">
    {{d.shopSpec.name}}
</script>
<script type="text/html" id="status">
    {{# if(d.status.display=='未付款'){ }}
    <span style="background: #00FF00;padding: 15px;color:white">{{d.status.display}}</span>
    {{# } }}
    {{# if(d.status.display=='已付款'){ }}
    <span style="background: red;padding: 15px;color:white">{{d.status.display}}</span>
    {{# } }}
    {{# if(d.status.display=='邮寄中'){ }}
    <span style="background: #009E94;padding: 15px;color:white">{{d.status.display}}</span>
    {{# } }}
    {{# if(d.status.display=='已收货'){ }}
    <span style="background: #805322;padding: 15px;color:white">{{d.status.display}}</span>
    {{# } }}
    {{# if(d.status.display=='取消'){ }}
    <span style="background: #0000FF;padding: 15px;color:white">{{d.status.display}}</span>
    {{# } }}
    {{# if(d.status.display=='退货'){ }}
    <span style="background: #40AFFE;padding: 15px;color:white">{{d.status.display}}</span>
    {{# } }}
</script>
<script type="text/html" id="user">
    {{d.users.name}}
</script>
<script type="text/html" id="sitePeople">

    {{# if(d.userSite!=''&&d.userSite!=null){ }}
    {{d.userSite.people}}
    {{# } }}

</script>
<script type="text/html" id="siteMobile">
    {{# if(d.userSite!=''&&d.userSite!=null){ }}
    {{d.userSite.mobile}}
    {{# } }}

</script>
<script type="text/html" id="site">
    {{# if(d.userSite!=''&&d.userSite!=null){ }}
    {{d.userSite.site}}
    {{# } }}
</script>
<script type="text/html" id="handel">
    <div class="layui-btn-group">
        <a href="javascript:dt('{{d.uuid}}')" type="button" class="layui-btn layui-btn-sm">详情</a>
    </div>
</script>
<script>
    var fspuser = {};
    fspuser["role"] = "[[${session.Users.role.uuid}]]";
</script>
<script type="text/javascript" th:src="@{/js/app/Order/home.js}"></script>
</body>
</html>